package cn.com.victorysoft.ylgl.service.fracturingpressure.domain.jobTest;

import cn.com.victorysoft.ylgl.service.commons.domain.BaseEntity;
import cn.com.victorysoft.ylgl.service.commons.json.DateToISODateTimeSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 地层测试报告
 */
public class FormationTestRep extends BaseEntity {

    private String wellId;

    private String wellPurpose;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date testTime;

    private String testTechnique;

    private String fileDescription;

    private String fileName;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date uploadDate;

    private String remarks;


    public String getWellId() {
        return wellId;
    }

    public void setWellId(String wellId) {
        this.wellId = wellId == null ? null : wellId.trim();
    }

    public String getWellPurpose() {
        return wellPurpose;
    }

    public void setWellPurpose(String wellPurpose) {
        this.wellPurpose = wellPurpose == null ? null : wellPurpose.trim();
    }
    
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public Date getTestTime() {
        return testTime;
    }

    @JsonSerialize(using = DateToISODateTimeSerializer.class)
    public void setTestTime(Date testTime) {
        this.testTime = testTime;
    }

    public String getTestTechnique() {
        return testTechnique;
    }

    public void setTestTechnique(String testTechnique) {
        this.testTechnique = testTechnique;
    }

    public String getFileDescription() {
        return fileDescription;
    }

    public void setFileDescription(String fileDescription) {
        this.fileDescription = fileDescription;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public Date getUploadDate() {
        return uploadDate;
    }

    @JsonSerialize(using = DateToISODateTimeSerializer.class)
    public void setUploadDate(Date uploadDate) {
        this.uploadDate = uploadDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

}